package vo.securityvo;

import java.io.Serializable;
import java.rmi.RemoteException;

import Enum.Faculty;
import Enum.Gender;
import Enum.Hometown;
import Enum.UserRole;
import po.userpo.Birthday;
import po.userpo.UserPO;
import po.userpo.UserID;

public class SecurityVo implements Serializable {
	UserPO user;

	public SecurityVo(UserID id, String name, String password, int age,
			UserRole role, Gender gender, Faculty faculty, Hometown hometown,
			Birthday birth,String registerTime) throws RemoteException {
		// TODO Auto-generated constructor stub

		user = new UserPO(id, name, password, age, role, gender, faculty,
				hometown, birth, registerTime);
	}
	
	public String  getName() throws RemoteException {
		return user.getusername();
	}
	
	public String  getPassword() throws RemoteException {
		return user.getPassword();
	}
	public UserRole getRole() throws RemoteException {
		return user.getUserRole();
	}
}
